<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车</title>
    <link rel="stylesheet" href="./css/cart.css">
</head>
<body>
    <div class="cart-wraper">
        <h1><a href="./index.html">购物车界面</a></h1>
        <table>
            <!-- 购物车列表 -->
        </table>
        <!-- 所有商品总价 -->
        <div>
            <h2>
                总价:￥<span style="color: red;" class="total-price">0</span>
                <button class="settlement" onclick="confirm(`共需支付￥${document.querySelector('.total-price').innerHTML}`)">结账</button>
            </h2>
           
        </div>
        
    </div>
    <script src="./js/cart.js"></script>
</body>
</html>